package com.phiture.erp.basic.core.pojo.dto;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * @author YH
 * @date 2025/3/31
 */

@Schema(description = "管理后台 - ERP 物料分页 Request DTO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ErpMaterialPageReqDTO extends PageParam {
    @Schema(description = "物料名称", example = "李四")
    private String name;

    @Schema(description = "物料类别", example = "11161")
    private Long categoryId;

    @Schema(description = "物料状态", example = "0")
    private Integer materialStatus;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;
}
